//
//  LMDownLoadCell.m
//  EPA
//
//  Created by lanou3g on 16/4/28.
//  Copyright © 2016年 liman. All rights reserved.
//

#import "LMDownLoadCell.h"
#import "DownLoadManager.h"

@interface LMDownLoadCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIProgressView *progressView;
@property (weak, nonatomic) IBOutlet UILabel *rateLabel;

@end

@implementation LMDownLoadCell

- (void)awakeFromNib {

}

-(void)layoutSubviews{
    self.titleLabel.text = [[DownLoadManager shareManager] getTitleWithIndex:self.indexPath.row];
    
    [[DownLoadManager shareManager]setProgressBlock:^(float progress) {
        self.progressView.progress = progress;
        self.rateLabel.text = [NSString stringWithFormat:@"进度:%.2f",progress * 100];
    } CompleteBlock:^(NSString *path) {
        
    } Index:self.indexPath.row];
    
    
}




- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
